package com.jh3502.helper.utils;


/**
 * Created by harisucici on 2017/3/28.
 */

public class ConstantUtil {

    public final static String APP_TOKEN = "APP_TOKEN";
    public static final int TYPE_FILE_VOICE = 28;
    public static final int TYPE_FILE_IMG = 15;
    public static final int TYPE_FILE_VIDEO = 14;
    public static final int TYPE_IMAGE = 1;
    public static final int TYPE_VIDEO = 2;
    public static final int TYPE_VOICE = 3;
    public static final int TYPE_TEXT = 4;
    public static final int REQUEST_CODE_IMAGE = 123;
    public static final int REQUEST_CODE_CAMARE = 223;
    public static final int REQUEST_CODE_VIDEO = 323;
    /**
     * 0x001-接受消息  0x002-发送消息
     **/
    public static final int CHAT_ITEM_TYPE_LEFT = 0x001;
    public static final int CHAT_ITEM_TYPE_RIGHT = 0x002;
    /**
     * 0x003-发送中  0x004-发送失败  0x005-发送成功
     **/
    public static final int CHAT_ITEM_SENDING = 0x003;
    public static final int CHAT_ITEM_SEND_ERROR = 0x004;
    public static final int CHAT_ITEM_SEND_SUCCESS = 0x005;
    public static final String SEND_IMAGE_MSG_TAG_START = "[img]";
    public static final String SEND_IMAGE_MSG_TAG_END = "[/img]";
    public static final String SEND_VOICE_MSG_TAG_START = "[voice]";
    public static final String SEND_VOICE_MSG_TAG_END = "[/voice]";
    public static final String SEND_VIDEO_MSG_TAG_START = "[video]";
    public static final String SEND_VIDEO_MSG_TAG_END = "[/video]";
    public static final String SEND_ADDRESS_MSG_TAG_START = "[address]";
    public static final String SEND_ADDRESS_MSG_TAG_END = "[/address]";
    public static final String SEND_LATLNG_MSG_TAG_START = "[latlng]";
    public static final String SEND_LATLNG_MSG_TAG_END = "[/latlng]";
    public static final String CHAT_TOPIC = "/topic/chat.message.";
    public static final String CHAT_MESSAGE = "CHAT_MESSAGE";
    public static final String CHAT_LOGIN = "CHAT_LOGIN";
    public static final String CHAT_TEST = "CHAT_TEST";
    public static final int UPLOAD_FINISH_CODE = 667;
    public static final String CHAT_HEART = "已连接";

    /*public static class Array {
        public static final int[] clueStateBg = new int[]{R.drawable.clue_list_state_yijubao,
                R.drawable.clue_list_state_yijubao,
                R.drawable.clue_list_state_yichuli, R.drawable.clue_list_state_yifankui,
                R.drawable.clue_list_state_reward_apply, R.drawable.clue_list_state_reward_pass,
                R.drawable.clue_list_state_finish, R.drawable.clue_list_state_dispatch,
                R.drawable.clue_list_state_retry_audit, R.drawable.clue_list_state_branch_pass,
                R.drawable.clue_list_state_urban_pass};
        public static final int[] clueStateColor = new int[]{
                R.color.color_217ede, R.color.color_217ede, R.color.color_28c9d4, R.color.color_d9a868,
                R.color.color_e1834c, R.color.color_d86867, R.color.color_20b21c, R.color.color_9a1db0,
                R.color.color_d46f28, R.color.color_ca64ab, R.color.color_d65f88
        };
    }*/


    /**
     * 网络监听
     *
     * @author hjy
     * created at 2016/11/25 12:03
     */
    public class NetWork {
        //移动：Moblie
        public static final String MOBLIE = "Moblie";
        // Wifi:Wifi
        public static final String WIFI = "Wifi";
        //当前是wifi状态
        public static final int IS_WIFI = 0x001;
        //当前是Mobile状态
        public static final int IS_MOBILE = 0x002;
        //都没有连接
        public static final int NO_CONNECTION = 0x003;
        //关闭wifi
        //public static final int OPEN_WIFI = 0x004;
        //打开wifi
        //public static final int CLOSE_WIFI = 0x005;
    }

//    public class Error {
//        public static final String netError = "网络连接异常，请检查网络后重试...";
//        public static final String dataError = "数据请求异常，请重试...";
//        public static final String serviceError = "";
//        public static final String dataEnd = "没有更多数据了...";
//        public static final String userError = "登录超时，请重新登录";
//        public static final String jsonError = "数据解析异常...";
//    }

    public class ReceiverUtil {
        public static final String LOCATION_RECEIVER = "org.sc.pa.locationreceiver";
        public static final String STATE_RECEIVER = "org.sc.pa.statereceiver";
        public static final String LOGIN = "org.sc.pa.loginreceiver";
    }

    public class EventType {
        public static final int FEEDBACKEND = 1;
        public static final int NOTIFY = 100;
        public static final int DOWNLOADFILE = 2;
//        public static final int LOCATION = 100;
    }

    public class JpushEvent {
//        public static final String FIREALARM = "FIRE_ASSIGN_PATROL_GROUP";
//        public static final String COMMAND = "SEND_TASK";
    }

    public class DownLoadType {
        public static final int FAILED = 0;
        public static final int SUCCESS = 1;
        public static final int SCHEDULE = 2;

    }


}
